package com.xbongbong.distributor.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author mengna.deng
 */
@Getter
@Setter
@ToString
public class DistributorAreaUpdateDTO extends BaseDTO {
    private static final long serialVersionUID = -3189176509500184164L;

    /**
     * 名称
     */
    @NotNull(message = "{dto.msg.distributorAreaUpdate.name.NotNull}")
    @Length(max = 50, message = "{dto.msg.distributorAreaUpdate.name.Length}")
    @Getter(onMethod_ = {@QueryIgnore})
    private String name;

    /**
     * 删除区域的id
     */
    @NotNull(message = "{dto.msg.distributorAreaUpdate.id.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private Long id;

}
